
<?php
$index=$_POST['src'];
//exit($index);





require_once("./connect.php");

$ini=parse_ini_file('config.ini',false);

 //$abc=$_POST['to_save'];
mysql_select_db($ini['dbName']);
if(mysql_select_db($ini['dbName']))
{
    //$q="INSERT INTO `Adventkalender`.`save`( `saveJSON` )VALUES('$abc');";
    //$q = "select * from login where email='" . $email . "' and password='" . $pass . "';";

    
    
$q ="Select * From editablearea Where id='" . $index . "';";    

        $r = mysql_query($q);
while($vname = mysql_fetch_array($r)){
        
$venue = $vname['bgId'];
$bottom = $vname['bottom'];
$left = $vname['left'];
$width = $vname['width'];
$height = $vname['height'];
$to_send="".$bottom." ".$left." ".$width." ".$height;
print_r($to_send);
}

        
        
        
        
        
        
        
        
        
        if (mysql_num_rows($r) == 1) {
            $row = mysql_fetch_array($r);

         //   if ($row['verified'] == 1) {
        //        $_SESSION['email'] = $row['email'];
  //  $q="Select * From editablearea";
    exit ($row['bgId']);
    if(mysql_query($q))
    {
       echo "inserted";
    }
    else
    {
        echo "not inserted";
    }
}
else{
    
    echo "error in insertion";
}

}

//echo $theData;


?>